package com.flying.invest.base.model;

import java.util.Date;

import com.flying.framework.data.Data;
import com.flying.common.util.Codes;
import com.flying.framework.annotation.Param;
import com.flying.framework.data.DataSerializable;
import com.flying.framework.metadata.Meta;

@SuppressWarnings("serial")
@Meta(id="i_currency",title="币种", table="i_currency", primaryKeys={"currency_id"})
public class Currency extends Data implements DataSerializable {
	public final static String ENTITY_NAME = "i_currency";
	
	public final static String CURRENCY_ID = "currency_id";
	public final static String CODE = "code";
	public final static String NAME = "name";
	public final static String RATE = "rate";
	public final static String CREATE_TIME = "create_time";
	public final static String UPDATE_TIME = "update_time";
	
	
	@Param(value=CURRENCY_ID,   required=true,   maxlength=0,	desc="币种ID" , generator=Codes.AUTO_INCREMENT)
	private Long currencyId;
	
	@Param(value=CODE,   required=true,   maxlength=3,	desc="币种代码" )
	private String code;
	
	@Param(value=NAME,   required=true,   maxlength=50,	desc="币种名称" )
	private String name;
	
	@Param(value=RATE,   required=true,   maxlength=0,	desc="汇率" )
	private Double rate;
	
	@Param(value=CREATE_TIME,   required=false,   maxlength=0,	desc="创建时间" )
	private Date createTime;
	
	@Param(value=UPDATE_TIME,   required=false,   maxlength=0,	desc="更新时间" )
	private Date updateTime;
	
	
	public Long getCurrencyId() {
		return this.currencyId;
	}
	
	public void setCurrencyId(Long currencyId) {
		this.currencyId = currencyId;
	}
	
	public String getCode() {
		return this.code;
	}
	
	public void setCode(String code) {
		this.code = code;
	}
	
	public String getName() {
		return this.name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public Double getRate() {
		return this.rate;
	}
	
	public void setRate(Double rate) {
		this.rate = rate;
	}
	
	public Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public Date getUpdateTime() {
		return this.updateTime;
	}
	
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	

}